Optimal. Leaf size=158 \[ \frac{\sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac{b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac{3}{4};1,-p;\frac{7}{4};\sin ^4(e+f x),-\frac{b \sin ^4(e+f x)}{a}\right )}{3 f}+\frac{\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac{b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac{1}{4};1,-p;\frac{5}{4};\sin ^4(e+f x),-\frac{b \sin ^4(e+f x)}{a}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.150238, antiderivative size = 158, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {3223, 1240, 430, 429, 511, 510} \[ \frac{\sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac{b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac{3}{4};1,-p;\frac{7}{4};\sin ^4(e+f x),-\frac{b \sin ^4(e+f x)}{a}\right )}{3 f}+\frac{\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac{b \sin ^4(e+f x)}{a}+1\right )^{-p} F_1\left (\frac{1}{4};1,-p;\frac{5}{4};\sin ^4(e+f x),-\frac{b \sin ^4(e+f x)}{a}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3223
Rule 1240
Rule 430
Rule 429
Rule 511
Rule 510
Rubi steps
\begin{align*} \int \sec (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b x^4\right )^p}{1-x^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{\left (a+b x^4\right )^p}{1-x^4}-\frac{x^2 \left (a+b x^4\right )^p}{-1+x^4}\right ) \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b x^4\right )^p}{1-x^4} \, dx,x,\sin (e+f x)\right )}{f}-\frac{\operatorname{Subst}\left (\int \frac{x^2 \left (a+b x^4\right )^p}{-1+x^4} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac{b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \operatorname{Subst}\left (\int \frac{\left (1+\frac{b x^4}{a}\right )^p}{1-x^4} \, dx,x,\sin (e+f x)\right )}{f}-\frac{\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac{b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \operatorname{Subst}\left (\int \frac{x^2 \left (1+\frac{b x^4}{a}\right )^p}{-1+x^4} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{F_1\left (\frac{1}{4};1,-p;\frac{5}{4};\sin ^4(e+f x),-\frac{b \sin ^4(e+f x)}{a}\right ) \sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac{b \sin ^4(e+f x)}{a}\right )^{-p}}{f}+\frac{F_1\left (\frac{3}{4};1,-p;\frac{7}{4};\sin ^4(e+f x),-\frac{b \sin ^4(e+f x)}{a}\right ) \sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac{b \sin ^4(e+f x)}{a}\right )^{-p}}{3 f}\\ \end{align*}
Mathematica [F] time = 5.95045, size = 0, normalized size = 0. \[ \int \sec (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.202, size = 0, normalized size = 0. \begin{align*} \int \sec \left ( fx+e \right ) \left ( a+b \left ( \sin \left ( fx+e \right ) \right ) ^{4} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (f x + e\right )^{4} + a\right )}^{p} \sec \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b \cos \left (f x + e\right )^{4} - 2 \, b \cos \left (f x + e\right )^{2} + a + b\right )}^{p} \sec \left (f x + e\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (f x + e\right )^{4} + a\right )}^{p} \sec \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]